<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Admin Template by www.865171.cn</title>
        <meta name="description" content="Administry - Admin Template by www.865171.cn" />
        <meta name="keywords" content="Admin,Template" />
        <link rel="shortcut icon" type="image/png" href="file/css/images/logo1.png"/>
        <link rel="icon" type="image/png" href="file/css/images/logo1.png"/>
        <link rel="apple-touch-icon" href="file/css/images/apple.png" />
        <!-- Main Stylesheet --> 
        <link rel="stylesheet" href="file/css/style.css" type="text/css" /> 
        <link rel="stylesheet" href="css/custom.css" type="text/css" />
    </head>
    <body>
        <!-- Header -->
        <header id="top">
            <div class="wrapper">
                <!-- Title/Logo - can use text instead of image -->
                <div id="title">尚源信息技</div>
                <!-- Top navigation -->
                <div id="topnav">
                    <a href="#"><img class="avatar" SRC="file/css/images/user_32.png" alt="" /></a>
				
                    <span>|</span> <a href="#">设置</a>
                    <?php
                    if (isset($_SESSION['Uname'])) {
                        if (empty($_SESSION['Uname'])) {
                            ?>
                            <span>|</span> <a href="index.php?con=index&act=login">登录</a>

                            <?php
                        } else {
                            ?>
                            <span>|</span> <a href="#">退出</a><br />
                            <?php
                        }
                    } else {
                        ?>
                        <span>|</span> <a href="index.php?con=index&act=login">登录</a> 
                        <span>|</span> <a href="index.php?con=index&act=register">注册</a> 
                        <?php
                    }
                    ?>

                </div>
                <!-- End of Top navigation -->

            </div>
        </header>
        <!-- End of Header -->
        <!-- Page title -->
        <div id="pagetitle">
            <div class="wrapper">
                <h1>
<?php
if (isset($_SESSION['Uname'])) {
    if ('' == $_SESSION['Uname']) {
        echo "请登录";
    } else {
        echo $_SESSION['Uname'];
    }
}
?>
                </h1>
                <p class="msg"><span>上次登录时间：</span>2012-32-21</p>
                <!-- Quick search box -->
				<p class="dig"><a href="index.php?con=UserCollect&act=run">用户数据挖掘</a></p>

            </div>
        </div>
        <!-- End of Page title -->

        <!-- Page content -->
        <div id="page">
            <!-- Wrapper -->
            <div class="wrapper">
                <!-- Left column/section -->
                <section class="width6">
                    <!--left contain-top-->

                    <div class="box box-info">
<?php
if (isset($productInfo)) {
    ?>
                            <div class="result"><p>您查询的产品名称为：&nbsp;<?php echo $productInfo['PName'] ?><span>（请放心使用)</span></p></div>
    <?php
} else {
    ?>
                            <div class='welcome'>欢迎查询</div>

                            <?php
                        }
                        ?>

                        <div class="search">
                            <form action="index.php?con=userproduct&act=getcode" method="post">
                                <input type="text"  name="code" />
                                <input type="submit"  value="查询" name="sub" style="border:1px solid #666; margin-left:5px;"/>
                            </form>
                        </div>
                    </div>
                    <div class="result">
                        <ul>
                            <li></li>

                        </ul>
                    </div>
                    <!--left contain-top end-->
                    <div class="pro_Push">
                        <ul>
<?php
if (isset($recommend)) {
    //print_r($recommend);
    foreach ($recommend as $key => $value) {
        ?>
                                    <li>
                                        <dl>
                                            <dt><img src="<?php echo $value['Pic']; ?>"></dt>
                                            <dd><p>产品名称：<?php echo $value['PName']; ?></p></dd>
                                        </dl>
                                    </li>
        <?php
    }
}
if (isset($default)) { 
    //print_r($default);
    foreach ($default as $key => $value) {
        ?>
                                    <li>
                                        <dl>
                                            <dt><img src="<?php echo $value['Pic'];?>"></dt>
                                            <dd><p>产品名称：<?php echo $value['PName']; ?></p></dd>
                                        </dl>
                                    </li>
        <?php
    }
}
?>                                                      
                        </ul>
                    </div>
                    <!--left contain-bottom end-->
                </section>
                <!-- End of Left column/section -->

                <!-- Right column/section -->
             
                <!-- End of Right column/section -->

            </div>
            <!-- End of Wrapper -->
        </div>
        <!-- End of Page content -->

        <!-- Page footer -->
        <footer id="bottom">
            <div class="wrapper">
                <nav>
                    <a href="#">Dashboard</a> &middot;
                    <a href="#">Content</a> &middot;
                    <a href="#">Reports</a> &middot;
                    <a href="#">Users</a> &middot;
                    <a href="#">Media</a> &middot;
                    <a href="#">Events</a> &middot;
                    <a href="#">Newsletter</a> &middot;
                    <a href="#">Settings</a>
                </nav>
                <p>Copyright &copy; 2010 <b><a HREF="http://www.865171.cn" title="www.865171.cn">shangyuan365.com</a></b> | Icons by <a HREF="http://www.865171.cn">865171.cn</a></p>
            </div>
        </footer>
        <!-- End of Page footer -->

        <!-- Scroll to top link -->


        <!-- Admin template javascript load -->
    </body>
</html>
